#!/usr/bin/python
# -*- coding: utf-8 -*-
# @version        : 1.0
# @Create Time    : 2024/9/6 11:11
# @File           : feature
# @IDE            : PyCharm
# @desc           : 描述

from sqlalchemy.orm import Mapped, mapped_column
from db.db_base import AuditModel
from sqlalchemy import String


class DCRebut(AuditModel):
    __tablename__ = "dc_check_rebut"
    __table_args__ =  {'comment': '检验驳回操作'}

    rebut_type: Mapped[str] = mapped_column(String(10), comment="驳回表单类型, 如ASR、QAR、PCLR、NDT")
    rebut_form_no: Mapped[str] = mapped_column(String(20), comment="驳回操作表单编号")

    before_status: Mapped[str] = mapped_column(String(10), comment="驳回前状态")
    after_status: Mapped[str] = mapped_column(String(10), comment="驳回后状态")

    reason: Mapped[str] = mapped_column(String(200), comment="驳回理由")
